package com.example.demo4_sport.service;

import com.example.demo4_sport.entity.QueryInfoByPages;
import com.example.demo4_sport.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface IUserService {

    /**
     * 登录服务模块
     * @param user
     * @return
     */
    String getUserByMessage(User user);

    /**
     * 实现分页查询用户服务模块
     */
    String getAllUsersByPages(QueryInfoByPages queryInfoByPages);

    Integer getUserCounts(String username);

    String changeUserState(Integer id,Boolean state);

    String insertUser(User user);

    String deleteUserById(Integer id);

    String getUpdateUserById(Integer id);

    String updateUserById(User user);


}
